package com.hmall.search.service;

import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.ItemDoc;
import com.hmall.search.pojo.RequestParams;
import org.elasticsearch.action.search.SearchRequest;

import java.util.List;
import java.util.Map;

public interface SearchService {
     List<String>getSuggestions(String key);

     PageDTO<ItemDoc> getsearchAll(RequestParams requestParams, SearchRequest request);

     Map<String,List<String>> getFilters(RequestParams requestParams, SearchRequest request);

    void deleteById(Long id);

    void insertById(Long id);
}
